package cn.zhizihua.mapper;

import cn.zhizihua.pojo.Address;
import cn.zhizihua.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressMapper extends BaseMapper<Address>{

    int add(Address address);
    int update(Address address);
    int delete(Integer id);
    Address getById(Integer id);
    List<Address> getAll(BaseQuery baseQuery);

    //通过用户编号查询该用户的所有地址
    List<Address> getByUserId(Integer userId);

}
